package com.sys.controller;

import com.sys.pojo.Gcmc;
import com.sys.service.GcmcService;
import com.sys.vo.GcmcVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

@Controller
public class GcmcController {
    @Autowired
    private GcmcService gcmcService;
    @RequestMapping("/gcmc/getGcmcInfo/{khmcId}")
    @ResponseBody
    public List<GcmcVo>getGcmcInfo(@Param("khmcId") Integer khmcId){
        return gcmcService.getGcmcInfo(khmcId);
    }
}
